package org.uek.ships.server;

import java.net.Socket;

public class PlayerPair {

	private Socket firstPlayerSocket;

	private Socket secondPlayerSocket;

	public PlayerPair(Socket firstPlayerSocket) {
		super();
		this.firstPlayerSocket = firstPlayerSocket;
	}

	public void setSecondPlayerSocket(Socket secondPlayerSocket) {
		this.secondPlayerSocket = secondPlayerSocket;
	}

	public Socket getFirstPlayerSocket() {
		return firstPlayerSocket;
	}

	public void setFirstPlayerSocket(Socket firstPlayerSocket) {
		this.firstPlayerSocket = firstPlayerSocket;
	}

	public Socket getSecondPlayerSocket() {
		return secondPlayerSocket;
	}

	@Override
	public String toString() {
		return "PlayerPair [firstPlayer=" + firstPlayerSocket.getLocalAddress() + ", secondPlayer=" + secondPlayerSocket.getLocalAddress() + "]";
	}

}
